/*
 *  $Id: DesolatedValley.cs 1067 2010-05-21 11:00:43Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Darkness.Lands {
    public class DesolatedValley: LandCard {
        public DesolatedValley(): base("001_d_l_desolated_valley") {
            Level = CompleteLevel.ReadyForTest;
            Element = ElementType.Darkness;
            Value = 100;
            AddManaCost(ElementType.Darkness, 4);
        }
        public override void SetNaturalAffects(ICollector<Affect> affects) {
            affects.Add(new Affects.ManaIncome(ElementType.Darkness, 4));
            affects.Add<DesolatedValleyAura>();
        }

        private class DesolatedValleyAura: DefenceAuraAffect {
            public override string Id {
                get { return AffectManager.GetCardId<DesolatedValley>("aura"); }
            }

            protected override Affect CreateSubAffect() {
                return new DesolatedValleyAffect();
            }
        }

        private class DesolatedValleyAffect: SpellAffect<DesolatedValley> {
            public DesolatedValleyAffect() {
                Add(new Affects.FearAura(3));
            }
        }
    }
}
